// 页面位置信息存储
import {defineStore} from "pinia";

interface LocationRecord {
    // 路由信息记录
    name: string; // 组件路由中文名称
    displayName: string | undefined; // 组件路由显示名称
    englishName: string | undefined;
    routeName: string; // 组件路由名称
    path: string; // 路由路径
    belongTo: string; // 属于哪个导航
}

export const useLocationStore = defineStore("location", {
    persist: true,
    state: (): LocationRecord => ({
        name: '',
        displayName: '',
        englishName: '',
        routeName: '',
        path: '',
        belongTo: '',
    })
})